﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace czj_shop.Models
{
    public interface IGoodService
    {
        /// <summary>
        /// 查询商品方法
        /// </summary>
        /// <param name="keyword"></param>
        /// <param name="cateId"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        List<Good> GetGoods(string keyword, int cateId, int pageIndex, int pageSize);

        /// <summary>
        /// 獲取商品總數
        /// </summary>
        /// <returns></returns>
        int GetGoodTotal(string keyword, int cateId);
    }

}
